package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	ProduceCode string  `gorm:"type:varchar(40);not null;comment:'商品编码'"`
	Img         string  `gorm:"type:varchar(200);not null;comment:'商品图片'"`
	ProduceName string  `gorm:"type:varchar(40);not null;comment:'商品姓名'"`
	Price       float64 `gorm:"type:decimal(10,2);not null;comment:'商品价格'"`
	Store       int     `gorm:"type:int(11);not null;comment:'商品储存'"`
	Status      int     `gorm:"type:int(11);not null;comment:'商品状态'"`
	UserId      int     `gorm:"type:int(11);not null;comment:'用户'"`
}
